package com.tedu.service.Impl;

import com.tedu.dao.MessageDao;
import com.tedu.pojo.Message;
import com.tedu.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class MessageServiceImpl implements MessageService {
    @Autowired
    private MessageDao messageDao;
    @Override
    public List<Message> selectMessage(Message message) {
        return messageDao.selectMessage(message);
    }

    @Override
    public int deleteById(Long... id) {
        return messageDao.deleteById(1l,2l,3l);
    }

    @Override
    public int insert(Message message) {
        return messageDao.insert(message);
    }
}
